export default {
  computed: {

    // 是否展示更多
    showMore() {
      return this.option.showMore
    },
    // 模块名称
    moduleName() {
      return this.option.moduleName
    },
    isShowModuleName() {
      return this.option.isShowModuleName
    },
    spacing() {
      return this.px2rem(this.option.spacing || 0)
    },
    link() {
      return this.option.link
    },
    moreLink() {
      return this.option.moreLink
    },
    showNumber() {
      return this.option.showNumber
    },
    showSubtitle() {
      return this.option.showSubtitle
    }

  },
  methods: {
    toMore(path) {
      if (this.moreLink.link) {
        if (this.moreLink.link.startsWith('http')) {
          window.location.href = this.moreLink.link
        } else {
          this.$router.push({ path: this.moreLink.link })
        }
      }
    }
  }
}
